home *** CD-ROM | disk | FTP | other *** search
/ QuickTime 2.0 Developer Kit / QuickTime 2.0 Developer Kit.iso / mac / MAC / Programming Stuff / Interfaces / CIncludes / ASRegistry.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-11-11  |  11.4 KB  |  334 lines  |  [TEXT/MPS ]

  1. /*
  2.      File:        ASRegistry.h
  3.  
  4.      Copyright:    © 1984-1994 by Apple Computer, Inc.
  5.                  All rights reserved.
  6.  
  7.      Version:    Universal Interfaces 2.0a3  ETO #16, MPW prerelease.  Friday, November 11, 1994. 
  8.  
  9.      Bugs?:        If you find a problem with this file, send the file and version
  10.                  information (from above) and the problem description to:
  11.  
  12.                      Internet:    apple.bugs@applelink.apple.com
  13.                      AppleLink:    APPLE.BUGS
  14.  
  15. */
  16.  
  17. #ifndef __ASREGISTRY__
  18. #define __ASREGISTRY__
  19.  
  20.  
  21. #ifndef __APPLEEVENTS__
  22. #include <AppleEvents.h>
  23. #endif
  24. /*    #include <Errors.h>                                            */
  25. /*        #include <ConditionalMacros.h>                            */
  26. /*    #include <Types.h>                                            */
  27. /*    #include <Memory.h>                                            */
  28. /*        #include <MixedMode.h>                                    */
  29. /*    #include <OSUtils.h>                                        */
  30. /*    #include <Events.h>                                            */
  31. /*        #include <Quickdraw.h>                                    */
  32. /*            #include <QuickdrawText.h>                            */
  33. /*    #include <EPPC.h>                                            */
  34. /*        #include <PPCToolbox.h>                                    */
  35. /*            #include <AppleTalk.h>                                */
  36. /*        #include <Processes.h>                                    */
  37. /*            #include <Files.h>                                    */
  38. /*    #include <Notification.h>                                    */
  39.  
  40. #ifndef __AEREGISTRY__
  41. #include <AERegistry.h>
  42. #endif
  43.  
  44. #ifndef __AEOBJECTS__
  45. #include <AEObjects.h>
  46. #endif
  47.  
  48. #ifdef __cplusplus
  49. extern "C" {
  50. #endif
  51.  
  52. #if GENERATINGPOWERPC
  53. #pragma options align=mac68k
  54. #endif
  55.  
  56. #ifdef __CFM68K__
  57. #pragma lib_export on
  58. #endif
  59.  
  60.  
  61. enum {
  62.     keyAETarget                    = 'targ',                        /*  0x74617267  */
  63.     keySubjectAttr                = 'subj',                        /*  0x7375626a  */
  64. /* Magic 'returning' parameter: */
  65.     keyASReturning                = 'Krtn',                        /*  0x4b72746e  */
  66. /* AppleScript Specific Codes: */
  67.     kASAppleScriptSuite            = 'ascr',                        /*  0x61736372  */
  68.     kASTypeNamesSuite            = 'tpnm',                        /*  0x74706e6d  */
  69. /* dynamic terminologies */
  70.     typeAETE                    = 'aete',                        /*  0x61657465  */
  71.     typeAEUT                    = 'aeut',                        /*  0x61657574  */
  72.     kGetAETE                    = 'gdte',                        /*  0x67647465  */
  73.     kGetAEUT                    = 'gdut',                        /*  0x67647574  */
  74.     kUpdateAEUT                    = 'udut',                        /*  0x75647574  */
  75.     kUpdateAETE                    = 'udte',                        /*  0x75647465  */
  76.     kCleanUpAEUT                = 'cdut',                        /*  0x63647574  */
  77.     kASComment                    = 'cmnt',                        /*  0x636d6e74  */
  78.     kASLaunchEvent                = 'noop',                        /*  0x6e6f6f70  */
  79.     keyScszResource                = 'scsz',                        /*  0x7363737A  */
  80.     typeScszResource            = 'scsz',                        /*  0x7363737A  */
  81. /* subroutine calls */
  82.     kASSubroutineEvent            = 'psbr',                        /*  0x70736272  */
  83.     keyASSubroutineName            = 'snam'
  84. };
  85.  
  86. /* Operator Events: */
  87. enum {
  88. /* Binary: */
  89.     kASAdd                        = '+   ',                        /*  0x2b202020  */
  90.     kASSubtract                    = '-   ',                        /*  0x2d202020  */
  91.     kASMultiply                    = '*   ',                        /*  0x2a202020  */
  92.     kASDivide                    = '/   ',                        /*  0x2f202020  */
  93.     kASQuotient                    = 'div ',                        /*  0x64697620  */
  94.     kASRemainder                = 'mod ',                        /*  0x6d6f6420  */
  95.     kASPower                    = '^   ',                        /*  0x5e202020  */
  96.     kASEqual                    = kAEEquals,
  97.     kASNotEqual                    = '≠   ',                        /*  0xad202020  */
  98.     kASGreaterThan                = kAEGreaterThan,
  99.     kASGreaterThanOrEqual        = kAEGreaterThanEquals,
  100.     kASLessThan                    = kAELessThan,
  101.     kASLessThanOrEqual            = kAELessThanEquals,
  102.     kASComesBefore                = 'cbfr',                        /*  0x63626672  */
  103.     kASComesAfter                = 'cafr',                        /*  0x63616672  */
  104.     kASConcatenate                = 'ccat',                        /*  0x63636174  */
  105.     kASStartsWith                = kAEBeginsWith,
  106.     kASEndsWith                    = kAEEndsWith,
  107.     kASContains                    = kAEContains
  108. };
  109.  
  110. enum {
  111.     kASAnd                        = kAEAND,
  112.     kASOr                        = kAEOR,
  113. /* Unary: */
  114.     kASNot                        = kAENOT,
  115.     kASNegate                    = 'neg ',                        /*  0x6e656720  */
  116.     keyASArg                    = 'arg '
  117. };
  118.  
  119. enum {
  120. /* event code for the 'error' statement */
  121.     kASErrorEventCode            = 'err ',                        /*  0x65727220  */
  122.     kOSAErrorArgs                = 'erra',                        /*  0x65727261  */
  123. /* Properties: */
  124.     pLength                        = 'leng',                        /*  0x6c656e67  */
  125.     pReverse                    = 'rvse',                        /*  0x72767365  */
  126.     pRest                        = 'rest',                        /*  0x72657374  */
  127.     pInherits                    = 'c@#^',                        /*  0x6340235e  */
  128. /* User-Defined Record Fields: */
  129.     keyASUserRecordFields        = 'usrf',                        /*  0x75737266  */
  130.     typeUserRecordFields        = typeAEList
  131. };
  132.  
  133. /* Prepositions: */
  134. enum {
  135.     keyASPrepositionAt            = 'at  ',                        /*  0x61742020  */
  136.     keyASPrepositionIn            = 'in  ',                        /*  0x696e2020  */
  137.     keyASPrepositionFrom        = 'from',                        /*  0x66726f6d  */
  138.     keyASPrepositionFor            = 'for ',                        /*  0x666f7220  */
  139.     keyASPrepositionTo            = 'to  ',                        /*  0x746f2020  */
  140.     keyASPrepositionThru        = 'thru',                        /*  0x74687275  */
  141.     keyASPrepositionThrough        = 'thgh',                        /*  0x74686768  */
  142.     keyASPrepositionBy            = 'by  ',                        /*  0x62792020  */
  143.     keyASPrepositionOn            = 'on  ',                        /*  0x6f6e2020  */
  144.     keyASPrepositionInto        = 'into',                        /*  0x696e746f  */
  145.     keyASPrepositionOnto        = 'onto',                        /*  0x6f6e746f  */
  146.     keyASPrepositionBetween        = 'btwn',                        /*  0x6274776e  */
  147.     keyASPrepositionAgainst        = 'agst',                        /*  0x61677374  */
  148.     keyASPrepositionOutOf        = 'outo',                        /*  0x6f75746f  */
  149.     keyASPrepositionInsteadOf    = 'isto',                        /*  0x6973746f  */
  150.     keyASPrepositionAsideFrom    = 'asdf',                        /*  0x61736466  */
  151.     keyASPrepositionAround        = 'arnd',                        /*  0x61726e64  */
  152.     keyASPrepositionBeside        = 'bsid',                        /*  0x62736964  */
  153.     keyASPrepositionBeneath        = 'bnth',                        /*  0x626e7468  */
  154.     keyASPrepositionUnder        = 'undr'
  155. };
  156.  
  157. enum {
  158.     keyASPrepositionOver        = 'over',                        /*  0x6f766572  */
  159.     keyASPrepositionAbove        = 'abve',                        /*  0x61627665  */
  160.     keyASPrepositionBelow        = 'belw',                        /*  0x62656c77  */
  161.     keyASPrepositionApartFrom    = 'aprt',                        /*  0x61707274  */
  162.     keyASPrepositionGiven        = 'givn',                        /*  0x6769766e  */
  163.     keyASPrepositionWith        = 'with',                        /*  0x77697468  */
  164.     keyASPrepositionWithout        = 'wout',                        /*  0x776f7574  */
  165.     keyASPrepositionAbout        = 'abou',                        /*  0x61626f75  */
  166.     keyASPrepositionSince        = 'snce',                        /*  0x736e6365  */
  167.     keyASPrepositionUntil        = 'till'
  168. };
  169.  
  170. enum {
  171. /* Terminology & Dialect things: */
  172.     kDialectBundleResType        = 'Dbdl',                        /*  0x4462646c  */
  173. /* AppleScript Classes and Enums: */
  174.     cConstant                    = typeEnumerated,
  175.     cClassIdentifier            = pClass,
  176.     cObjectBeingExamined        = typeObjectBeingExamined,
  177.     cList                        = typeAEList,
  178.     cSmallReal                    = typeSMFloat,
  179.     cReal                        = typeFloat,
  180.     cRecord                        = typeAERecord,
  181.     cReference                    = cObjectSpecifier,
  182.     cUndefined                    = 'undf',                        /*  0x756e6466  */
  183.     cSymbol                        = 'symb',                        /*  0x73796d62  */
  184.     cLinkedList                    = 'llst',                        /*  0x6c6c7374  */
  185.     cVector                        = 'vect',                        /*  0x76656374  */
  186.     cEventIdentifier            = 'evnt',                        /*  0x65766e74  */
  187.     cKeyIdentifier                = 'kyid',                        /*  0x6b796964  */
  188.     cUserIdentifier                = 'uid ',                        /*  0x75696420  */
  189.     cPreposition                = 'prep',                        /*  0x70726570  */
  190.     cKeyForm                    = enumKeyForm,
  191.     cScript                        = 'scpt',                        /*  0x73637074  */
  192.     cHandler                    = 'hand',                        /*  0x68616e64  */
  193.     cProcedure                    = 'proc'
  194. };
  195.  
  196. enum {
  197.     cClosure                    = 'clsr',                        /*  0x636c7372  */
  198.     cRawData                    = 'rdat',                        /*  0x72646174  */
  199.     cString                        = typeChar,
  200.     cStringClass                = typeChar,
  201.     cNumber                        = 'nmbr',                        /*  0x6e6d6272  */
  202.     cListOrRecord                = 'lr  ',                        /*  0x6c722020  */
  203.     cListOrString                = 'ls  ',                        /*  0x6c732020  */
  204.     cListRecordOrString            = 'lrs ',                        /*  0x6c727320  */
  205.     cNumberOrDateTime            = 'nd  ',                        /*  0x6e642020  */
  206.     cNumberDateTimeOrString        = 'nds ',                        /*  0x6e647320  */
  207.     cSeconds                    = 'scnd',                        /*  0x73636e64  */
  208.     enumBooleanValues            = 'boov',                        /*  0x626f6f76  */
  209.     kAETrue                        = typeTrue,
  210.     kAEFalse                    = typeFalse,
  211.     enumMiscValues                = 'misc',                        /*  0x6d697363  */
  212.     kASCurrentApplication        = 'cura',                        /*  0x63757261  */
  213. /* User-defined property ospecs: */
  214.     formUserPropertyID            = 'usrp'
  215. };
  216.  
  217. enum {
  218. /* Global properties: */
  219.     pASIt                        = 'it  ',                        /*  0x69742020  */
  220.     pASMe                        = 'me  ',                        /*  0x6d652020  */
  221.     pASResult                    = 'rslt',                        /*  0x72736c74  */
  222.     pASSpace                    = 'spac',                        /*  0x73706163  */
  223.     pASReturn                    = 'ret ',                        /*  0x72657420  */
  224.     pASTab                        = 'tab ',                        /*  0x74616220  */
  225.     pASPi                        = 'pi  ',                        /*  0x70692020  */
  226.     pASParent                    = 'pare',                        /*  0x70617265  */
  227.     kASInitializeEventCode        = 'init',                        /*  0x696e6974  */
  228.     pASPrintLength                = 'prln',                        /*  0x70726c6e  */
  229.     pASPrintDepth                = 'prdp',                        /*  0x70726470  */
  230.     pASTopLevelScript            = 'ascr'
  231. };
  232.  
  233. enum {
  234. /* Considerations */
  235.     kAECase                        = 'case',                        /*  0x63617365  */
  236.     kAEDiacritic                = 'diac',                        /*  0x64696163  */
  237.     kAEWhiteSpace                = 'whit',                        /*  0x77686974  */
  238.     kAEHyphens                    = 'hyph',                        /*  0x68797068  */
  239.     kAEExpansion                = 'expa',                        /*  0x65787061  */
  240.     kAEPunctuation                = 'punc',                        /*  0x70756e63  */
  241.     kAEZenkakuHankaku            = 'zkhk',                        /*  0x7a6b686b  */
  242.     kAESmallKana                = 'skna',                        /*  0x736b6e61  */
  243.     kAEKataHiragana                = 'hika',                        /*  0x68696b61  */
  244. /* AppleScript considerations: */
  245.     kASConsiderReplies            = 'rmte',                        /*  0x726d7465  */
  246.     enumConsiderations            = 'cons'
  247. };
  248.  
  249. enum {
  250.     cCoercion                    = 'coec',                        /*  0x636f6563  */
  251.     cCoerceUpperCase            = 'txup',                        /*  0x74787570  */
  252.     cCoerceLowerCase            = 'txlo',                        /*  0x74786c6f  */
  253.     cCoerceRemoveDiacriticals    = 'txdc',                        /*  0x74786463  */
  254.     cCoerceRemovePunctuation    = 'txpc',                        /*  0x74787063  */
  255.     cCoerceRemoveHyphens        = 'txhy',                        /*  0x74786879  */
  256.     cCoerceOneByteToTwoByte        = 'txex',                        /*  0x74786578  */
  257.     cCoerceRemoveWhiteSpace        = 'txws',                        /*  0x74787773  */
  258.     cCoerceSmallKana            = 'txsk',                        /*  0x7478736b  */
  259.     cCoerceZenkakuhankaku        = 'txze',                        /*  0x74787a65  */
  260.     cCoerceKataHiragana            = 'txkh',                        /*  0x74786b68  */
  261. /* Lorax things: */
  262.     cZone                        = 'zone',                        /*  0x7a6f6e65  */
  263.     cMachine                    = 'mach',                        /*  0x6d616368  */
  264.     cAddress                    = 'addr',                        /*  0x61646472  */
  265.     cRunningAddress                = 'radd',                        /*  0x72616464  */
  266.     cStorage                    = 'stor'
  267. };
  268.  
  269. enum {
  270. /* DateTime things: */
  271.     pASWeekday                    = 'wkdy',                        /*  0x776b6479  */
  272.     pASMonth                    = 'mnth',                        /*  0x6d6e7468  */
  273.     pASDay                        = 'day ',                        /*  0x64617920  */
  274.     pASYear                        = 'year',                        /*  0x79656172  */
  275.     pASTime                        = 'time',                        /*  0x74696d65  */
  276.     pASDateString                = 'dstr',                        /*  0x64737472  */
  277.     pASTimeString                = 'tstr',                        /*  0x74737472  */
  278. /* Months */
  279.     cMonth                        = pASMonth,
  280.     cJanuary                    = 'jan ',                        /*  0x6a616e20  */
  281.     cFebruary                    = 'feb ',                        /*  0x66656220  */
  282.     cMarch                        = 'mar ',                        /*  0x6d617220  */
  283.     cApril                        = 'apr ',                        /*  0x61707220  */
  284.     cMay                        = 'may ',                        /*  0x6d617920  */
  285.     cJune                        = 'jun ',                        /*  0x6a756e20  */
  286.     cJuly                        = 'jul ',                        /*  0x6a756c20  */
  287.     cAugust                        = 'aug ',                        /*  0x61756720  */
  288.     cSeptember                    = 'sep ',                        /*  0x73657020  */
  289.     cOctober                    = 'oct ',                        /*  0x6f637420  */
  290.     cNovember                    = 'nov ',                        /*  0x6e6f7620  */
  291.     cDecember                    = 'dec '
  292. };
  293.  
  294. enum {
  295. /* Weekdays */
  296.     cWeekday                    = pASWeekday,
  297.     cSunday                        = 'sun ',                        /*  0x73756e20  */
  298.     cMonday                        = 'mon ',                        /*  0x6d6f6e20  */
  299.     cTuesday                    = 'tue ',                        /*  0x74756520  */
  300.     cWednesday                    = 'wed ',                        /*  0x77656420  */
  301.     cThursday                    = 'thu ',                        /*  0x74687520  */
  302.     cFriday                        = 'fri ',                        /*  0x66726920  */
  303.     cSaturday                    = 'sat ',                        /*  0x73617420  */
  304. /* AS 1.1 Globals: */
  305.     pASQuote                    = 'quot',                        /*  0x71756f74  */
  306.     pASSeconds                    = 'secs',                        /*  0x73656373  */
  307.     pASMinutes                    = 'min ',                        /*  0x6d696e20  */
  308.     pASHours                    = 'hour',                        /*  0x686f7572  */
  309.     pASDays                        = 'days',                        /*  0x64617973  */
  310.     pASWeeks                    = 'week',                        /*  0x7765656b  */
  311. /* Writing Code things: */
  312.     cWritingCodeInfo            = 'citl',                        /*  0x6369746c  */
  313.     pScriptCode                    = 'pscd',                        /*  0x70736364  */
  314.     pLangCode                    = 'plcd',                        /*  0x706c6364  */
  315. /* Magic Tell and End Tell events for logging: */
  316.     kASMagicTellEvent            = 'tell',                        /*  0x74656c6c  */
  317.     kASMagicEndTellEvent        = 'tend'
  318. };
  319.  
  320.  
  321. #ifdef __CFM68K__
  322. #pragma lib_export off
  323. #endif
  324.  
  325. #if GENERATINGPOWERPC
  326. #pragma options align=reset
  327. #endif
  328.  
  329. #ifdef __cplusplus
  330. }
  331. #endif
  332.  
  333. #endif /* __ASREGISTRY__ */
  334.